using PBMessage;
using UnityEngine;
using System.Collections;
using GameUnit;
public class SC_BehaviorOperation_Handler :IPBHandler
{ 
    public void Exec(object packet) 
    {
        SC_BehaviorOperation PacketData = (SC_BehaviorOperation)packet;
        switch(PacketData.OptType)
        {
            //add
            case 0: break;
            //del
            case 1: break;
            //change
            case 2:
                Behavior behavior = UnitManager.GetUnit(PacketData.UnitId).GetBehaviorByUUID(PacketData.BehaviorIndex);
                behavior.OnServerBehaviorSync(PacketData);
            break;

        }
        
    }
}
